package com.ler.yrmall.search.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author leron
 */
@Data
public class SearchResultDTO implements Serializable {

    //查询到的所有商品信息
    private List<SkuEsModelDTO> skuList;

    /**
     * 以下是分页信息
     */
    private Integer pageNum;

    private Long total;

    private Integer totalPages;

    /**
     * 所有涉及到的品牌
     */
    private List<BrandVo> brands;

    /**
     * 所有涉及到的分类
     */
    private List<CatalogVo> category;

    /**
     * 所有涉及到的属性
     */
    private List<AttrVo> attrs;

    private List<Long> attrIds;



    @Data
    public static class BrandVo implements Serializable {
        private Long brandId;
        private String brandName;

        private String brandImg;
    }

    @Data
    public static class CatalogVo implements Serializable {
        private Long categoryId;
        private String categoryName;

    }

    @Data
    public static class AttrVo implements Serializable {
        private Long attrId;
        private String attrName;

        private List<String> attrValue;
    }
}
